//
//  NSDate+toFormattedString.m
//  dataGathering
//
//  Created by macmini on 15/1/20.
//  Copyright (c) 2015年 shuili. All rights reserved.
//

#import "NSDate+toFormattedString.h"

@implementation NSDate (toFormattedString)
-(NSString*)toFormattedString
{
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    
    
    [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    
    
    
    NSString *destDateString = [dateFormatter stringFromDate:[NSDate date]];
    return destDateString;
}
@end
